package com.wyy.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("user")
public class User implements Serializable {
    @TableId(value = "uid", type = IdType.AUTO)
    private Long uid;
    private String username;
    private String telephoneNumber;
    private String password;
    @TableField(exist = false)
    private List<Role> roles;
}
